<template>
	<view class="img-preview" :style="{ height: `${setOptions.setHeight}`, width: `${setOptions.setWidth}` }">
		<image :src="setOptions.setSrc" mode="aspectFill" class="img" @click="handleWatchImg"></image>
	</view>
</template>

<script setup>
// import { options } from 'axios';
import { ref } from 'vue';
const props = defineProps({
	setOptions: {
		type: Object,
		default: {
			setHeight: '300rpx',
			setWidth: '300rpx',
			setSrc: '/static/logo.png'
		}
	}
});

const handleWatchImg = () => {
	console.log(11111);
	uni.previewImage({
		urls: [props.setOptions.setSrc]
	});
};
</script>
<style scoped lang="scss">
.img-preview {
	.img {
		width: 100%;
		height: 100%;
	}
}
</style>
<style></style>
